package com.lagou.zxy;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author : zhangxuyuan
 * @Project: mongo
 * @Package com.lagou.zxy
 * @date Date : 2021年03月06日 23:07
 */
@Document("lg_resume_datas")
public class Resume {

    @Id
    private String id;


    private String name;


    private double salary;

    public Resume() {
    }

    public Resume(String id, String name, double salary) {
        this.id = id;
        this.name = name;
        this.salary = salary;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Resume{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                '}';
    }
}
